import java.util.*;
import java.io.Serializable;

public class Customer implements Serializable {
	private int cid,block,zip_code;
	private String full_name,street,unit_no,region;
    private Double balance = 100.0;

    public Double getBalance(){
        return balance;
    }

    public void setMoney(Double new_balance){
        this.balance = new_balance;
    }

    public void deductBalance(Double amount){
        this.balance -= amount;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getFull_name() {
        return full_name;
    }

    public void setFull_name(String full_name) {
        this.full_name = full_name;
    }

    public int getBlock() {
        return block;
    }

    public void setBlock(int block) {
        this.block = block;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getUnit_no() {
        return unit_no;
    }

    public void setUnit_no(String unit_no) {
        this.unit_no = unit_no;
    }

    public int getZip_code() {
        return zip_code;
    }

    public void setZip_code(int zip_code) {
        this.zip_code = zip_code;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

 	public Customer(int cid, String fn, int blk, String street, String unit_no, int zip_code, String region){
 		this.cid = cid;
 		full_name = fn;
 		block = blk;
 		this.street = street;
 		this.unit_no = unit_no;
 		this.zip_code = zip_code;
 		this.region = region;
	}
        
    public String toString(){
        return "CustomerID="+cid+",FullName="+full_name+",BlkNo="+block+",Street="+street+",UnitNo="+unit_no+",ZipCode="+zip_code+",Region="+region;
    }
	
}